package com.bskj.sj.service.template.impl;

import com.bskj.common.bean.model.WechatTemplateMsg;
import com.bskj.common.bean.model.WxTemplateParams;
import com.bskj.sj.service.template.TemplateMessageAction;
import org.springframework.stereotype.Component;

import java.util.TreeMap;

/**
 * Created by mocaijin on 21/12/2017.
 */
@Component(value = "unPayOrderAction")
public class UnPayOrderAction implements TemplateMessageAction {
    @Override
    public WechatTemplateMsg processMessage(Integer userId) throws Exception {

        WechatTemplateMsg wechatTemplateMsg = new WechatTemplateMsg();
        WxTemplateParams params = new WxTemplateParams();
        params.put("first","First");
        params.put("orderMoneySum","300000");
        params.put("orderProductName","OrderProductName");
        params.put("Remark","Remark");

        wechatTemplateMsg.setData(params);

        return wechatTemplateMsg;
    }
}
